package com.grj.parkingsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 车位预订表
 * @TableName t_parking_reservation
 */
@TableName(value ="t_parking_reservation")
@Data
public class ParkingReservation implements Serializable {
    /**
     * 预订ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 停车场ID
     */
    @TableField(value = "parking_lot_id")
    private Long parkingLotId;

    /**
     * 车位ID
     */
    @TableField(value = "space_id")
    private Long spaceId;

    /**
     * 预订时间
     */
    @TableField(value = "reservation_time")
    private Date reservationTime;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 状态(0:待使用,1:已使用,2:已取消,3:已过期)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}